import 'xmm_user.dart';
import 'package:json_annotation/json_annotation.dart';

part 'xmm_login.g.dart';

@JsonSerializable()
class XmmLogin {
  final bool isFirstRegister;

  final String token;

  final XmmUser userInfo;

  XmmLogin(
      {required this.isFirstRegister,
      required this.token,
      required this.userInfo});

  factory XmmLogin.fromJson(Map<String, dynamic> json) => _$XmmLoginFromJson(json);

  Map<String, dynamic> toJson() => _$XmmLoginToJson(this);
}
